package com.bd.module.querygood.ui;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;

public class QueryGoodPanel  extends JPanel{
	private JTable goodQueryJtable;
public QueryGoodPanel(){
	this.setBorder(new TitledBorder(null, "\u9500\u552E\u67E5\u8BE2(\u672A\u7ED3\u8D26)", TitledBorder.CENTER, TitledBorder.TOP, null, null));
	
	this.setLayout(null);

	JScrollPane scrollPane_1 = new JScrollPane();
	scrollPane_1.setBounds(10, 34, 593, 325);
	this.add(scrollPane_1);

	DefaultTableModel goodQueryData=new DefaultTableModel();
	goodQueryJtable = new JTable();
	goodQueryData.addColumn("商品代码");
	goodQueryData.addColumn("商品名称");
	goodQueryData.addColumn("零售价");
	goodQueryData.addColumn("数量");
	goodQueryData.addColumn("折率");
	goodQueryData.addColumn("营业员");goodQueryData.addColumn("登陆时间");
	Object[] goodQueryInfo = {"0001","笔记本","6500","2","1.00","0001","2013-11-01 10:10:21"};
	goodQueryData.addRow(goodQueryInfo);
	scrollPane_1.setColumnHeaderView(goodQueryJtable);
}
}
